DB Error: syntax error
SELECT WebpageAdmin.id as id, webpage_title, webpage_content, site_id, layout_code FROM WebpageAdmin JOIN Layout on Layout.id = layout_id where site_id = 60 AND displayed = 1 AND webpage_url = 'Javascript:fp_ShowImg(document['fpphoto_8243'],'504','378','6566',4)' [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'fpphoto_8243'],'504','378','6566',4)'' at line 10]